const app = getApp()
Component({
   /**
   * 自定义顶部导航栏（玖玖客名片首页）
   */
  properties: {
    isplatform: {
      type: Number,
      value: 0
    },
    navTitleText: {
      type: String,
      value: ''
    }
  },
  data: {
    navBarHeight: app.globalData.navBarHeight,
    menuBotton: app.globalData.menuBotton,
    menuHeight: app.globalData.menuHeight,
    menuLeft: app.globalData.menuLeft,
    menuWidth: app.globalData.menuWidth
  },
  methods: {
    backIndex: function(){
      if(this.data.isplatform == 1){
        wx.reLaunch({
          url: '/pages/indexDefault/index',
        })
      }else{
        wx.reLaunch({
          url: '/pages/home/index?isStartup=2',
        })
      }
    }
  }
})